package main.java.design.decorator;

/**
 * <p>
 *     装饰者模式
 * </p>
 *
 * @author : wangdejian
 * @version 1.0
 * @date : 2020/6/13 10:24
 */
public class Client {

    public static void main(String[] args) {
        CarDecorator porscheDecorator = new PorscheDecorator(new Porsche());
        porscheDecorator.buyCar();
    }
}
